package com.fin.zw.aiqas.entity;

import lombok.Data;
import org.hibernate.annotations.Table;

import javax.persistence.Column;
import javax.persistence.Entity;
import java.util.Date;

@Entity
@Table(appliesTo = "log_info", comment = "操作日志")
@Data
public class LogInfo extends BaseEntity {

    @Column(columnDefinition = "varchar(100) comment '当前登录人'")
    private String userName;

    @Column(columnDefinition = "datetime COMMENT '操作时间'")
    private Date recordTime;

    @Column(columnDefinition = "varchar(50) comment '请求方式'")
    private String methodType;

    @Column(columnDefinition = "varchar(100) comment '控制器名称'")
    private String className;

    @Column(columnDefinition = "varchar(100) comment '方法名称'")
    private String methodName;

    @Column(columnDefinition = "text COMMENT '参数'")
    private String param;

    @Column(columnDefinition = "varchar(200) comment '描述'")
    private String remark;

    @Column(columnDefinition = "varchar(50) comment '访问ip'")
    private String visitIp;

}
